"""
19 - Dars
"""
L1 = [1, 2, 3]
L2 = [i * 2 for i in L1]
print(L2)

RES = 0
for num in L1:
    RES += num ** 2
print(RES)

TIME1 = 3 # litres = 1
TIME2 = 6.7 # litres = 3
TIME3 = 11.8 # litres = 5

print(int(TIME1 // 2))
print(int(TIME2 // 2))
print(int(TIME1 // 2))

print(int(TIME1 / 2))
print(int(TIME2 / 2))
print(int(TIME3 / 2))

S = 'Hello world'
if ' ' in S:
    S = S.upper()
else:
    S = S.lower()

print(S)
